<h1>Dodaj użytkownika</h1>
<form method="post" action="{url User=AddUser}" id="add_user" name="add_user">
<div class="mainOptions">
	<h2 class="slidingTab"><a class="colapse" href="#">Dane podstawowe</a></h2>
	<div class="optionContent">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th>Imię </th>
				<td>
					<input type="text" value="{$data.first_name}" id="first_name" name="first_name"/>
					{if isset($errors.first_name)}
						<p class="error">{$errors.first_name}</p>
					{/if}
				</td>
			</tr>
			<tr>
				<th>Nazwisko</th>
				<td>
					<input type="text" value="{$data.last_name}" id="last_name" name="last_name"/>
					{if isset($errors.last_name)}
						<p class="error">{$errors.last_name}</p>
					{/if}					
				</td>
			</tr>
			<tr>
				<th>E-mail</th>
				<td>
					<input type="text" value="{$data.email}" id="email" name="email"/>
					{if isset($errors.email)}
						<p class="error">{$errors.email}</p>
					{/if}						
				</td>
			</tr>			
			<tr>
				<th>Hasło</th>
				<td>
					<input type="text" value="{$data.password}" id="password" name="password"/>
					{if isset($errors.password)}
						<p class="error">{$errors.password}</p>
					{/if}						
				</td>
			</tr>			
		</table>
	</div>
</div>


<div class="mainOptions">
	<h2 class="slidingTab"><a class="expand" href="#">Ustawienia</a></h2>
	<div class="optionContent" style="display: none;">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th>Status</th>
				<td>
					<input checked="checked" type="radio" name="status" value="0" id="status0" />
					<label for="status0">Normalny</label>
					<input type="radio" name="status" value="1" id="status1" />
					<label for="status1">Zablokowany</label>					
				</td>
			</tr>
			<tr>
				<th>Aktywny</th>
				<td>
					<input checked="checked" type="radio" name="active" value="1" id="astatus1" />
					<label for="astatus1">Aktywny</label>
					<input type="radio" name="active" value="0" id="astatus0" />
					<label for="astatus0">Nieaktywny</label>					
				</td>
			</tr>
		</table>
	</div>
</div>
<br />
<p align="right"><input class="cancel" type="button" name="" value="Anuluj" onclick="document.location='{url User=Index}'" /><input type="submit" name="" value="Zapisz" /></p>

</form>
<div class="clearBoth"></div>
